<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<tr:document  xmlns="http://www.w3.org/1999/xhtml" 
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html" 
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:tr="http://myfaces.apache.org/trinidad"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:rich="http://richfaces.org/rich"  >

  <ui:composition template="/templates/main.xhtml">


    <ui:define name="content">
      <tr:form>
        <tr:panelGroupLayout layout="vertical">


          <tr:panelCaptionGroup captionText="School">
            <tr:panelFormLayout rows="5" labelWidth="20%" fieldWidth="67%">
              <tr:inputText columns="30" label="Name" />
              <tr:inputText columns="30" label="Description" />
            </tr:panelFormLayout>
          </tr:panelCaptionGroup>

          <tr:panelCaptionGroup captionText="Logos">
            <tr:panelFormLayout rows="5" labelWidth="20%" fieldWidth="67%">
              <tr:inputText columns="60" label="Login Logo" />
              <tr:inputText columns="60" label="Banner Logo" />
            </tr:panelFormLayout>
          </tr:panelCaptionGroup>

          <tr:panelCaptionGroup captionText="Email">
            <tr:panelFormLayout rows="5" labelWidth="20%" fieldWidth="67%">
              <tr:inputText columns="30" label="SMTP Host" />
              <tr:inputText columns="5" label="SMTP Port" />
              <tr:inputText columns="20" label="User Name" />
              <tr:inputText columns="20" label="Password" />
            </tr:panelFormLayout>
          </tr:panelCaptionGroup>

          <tr:panelCaptionGroup captionText="Branches">
          <tr:table var="row" emptyText="No Data"  summary="Dynamic Table">
            <tr:column>
              <f:facet name="header">
                <tr:outputText value="Row"/>
              </f:facet>
              <tr:outputText value="#{empty row ? 'NULL - This is bad!' : row}"/>
            </tr:column>
            <tr:column>
              <f:facet name="header">
                <tr:outputText value="Number"/>
              </f:facet>
            </tr:column>
          </tr:table>          
          </tr:panelCaptionGroup>

        </tr:panelGroupLayout>
      </tr:form>
    </ui:define>
  </ui:composition>
</tr:document>
